package com.ruoyi.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.common.domain.Orders;import
        com.ruoyi.common.domain.dto.CommentDto;
import com.ruoyi.common.domain.dto.OrderDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 订单表，存储用户参与霸王餐活动的订单信息 Mapper 接口
 * </p>
 *
 * @author jiabao
 * @since 2025-06-25
 */
public interface OrdersMapper extends BaseMapper<Orders> {

    List<OrderDTO> selectOrder(@Param("userId") Long userId, @Param("currentStatus") String currentStatus);

    CommentDto getCommentInfoByOderNo(@Param("orderNo") String orderNo, @Param("userId") Long userId);
}
